package com.wlc.springdemo.service;

import com.wlc.springdemo.po.BookStore;
import com.wlc.springdemo.po.UserInfo;

import java.util.List;

/**
 * @author 王立朝
 * @date 2022/11/23
 * @description: 书店库存服务类
 */
public interface BookStoreService {
    /**
     * 查询所有库存
     * @return
     */
    List<BookStore> getAllBookStore();


    /**
     * 减库存
     * @param bookStore  图书库存信息
     * @param userInfo  用户账户信息
     * @return
     */
    int lessStock(BookStore bookStore, UserInfo userInfo);
}
